package com.cesgroup.zw.spring.boot.library.echarts.pie.simple;

import com.cesgroup.zw.spring.boot.charts.model.IChartsParam;
import com.cesgroup.zw.spring.boot.charts.model.IComponent;
import lombok.Builder;
import lombok.Data;

/**
 * @author ytj
 * @date 2019/7/1 11:18
 */
@Data
@Builder
@SuppressWarnings("serial")
public class SimplePieParam implements IChartsParam<SimplePieSeries,Object[][]> {

    private String title;

    private Object[][] dataset;

    @Override
    public IComponent[] getSeries() {
        return new SimplePieSeries[]{new SimplePieSeries()};
    }
}
